package com.gtja.beoms.base;

/**
 * 通用常量信息
 *
 * @author lichengtao
 */
public class CommonConstants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 令牌
     */
    public static final String TOKEN = "token";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * kafka msgType 文本消息
     */
    public final static String KAFKA_MSG_TYPE_TEXT = "QW_PUSH_DATA_TEXT";

    /**
     * kafka msgType  视频消息
     */
    public final static String KAFKA_MSG_TYPE_VIDEO = "QW_PUSH_DATA_VIDEO";

    /**
     * kafka msgType  图片消息
     */
    public final static String KAFKA_MSG_TYPE_IMAGE = "QW_PUSH_DATA_IMAGE";

    /**
     * kafka msgType  语音消息 mp3 amr
     */
    public final static String KAFKA_MSG_TYPE_VOICE = "QW_PUSH_DATA_VOICE";

    /**
     * kafka msgType  音频消息
     */
    public final static String KAFKA_MSG_TYPE_MEETING_VOICE_CALL = "QW_PUSH_DATA_MEETING_VOICE_CALL";

    /**
     * 企业微信 会话存档 msgType-text
     */
    public final static String QW_MSG_TYPE_TEXT = "text";

    /**
     * 企业微信 会话存档 msgType-video
     */
    public final static String QW_MSG_TYPE_VIDEO = "video";

    /**
     * 企业微信 会话存档 msgType-image
     */
    public final static String QW_MSG_TYPE_IMAGE = "image";

    /**
     * 企业微信 会话存档 msgType-voice
     */
    public final static String QW_MSG_TYPE_VOICE = "voice";

    /**
     * 企业微信 会话存档 msgType-voice
     */
    public final static String QW_MSG_TYPE_MEETING_VOICE_CALL = "meeting_voice_call";

    /**
     * 用户ID
     */
    public static final String JWT_USERID = "userid";

    /**
     * 用户名称
     */
    public static final String JWT_USERNAME = "sub";

    /**
     * 用户头像
     */
    public static final String JWT_AVATAR = "avatar";

    /**
     * 创建时间
     */
    public static final String JWT_CREATED = "created";

    /**
     * 用户权限
     */
    public static final String JWT_AUTHORITIES = "authorities";

    /**
     * 折线图类型(全部类型)
     */
    public static final String LINE_CHART_ALL = "1";

    /**
     * 折线图类型(新增)
     */
    public static final String LINE_CHART_ADD = "2";

    /**
     * 折线图类型(流失)
     */
    public static final String LINE_CHART_LOSE = "3";

    /**
     * 固定值(新增客户)
     */
    public static final String STR_CUSTOMER_ADD = "新增客户数";

    /**
     * 固定值(流失客户)
     */
    public static final String STR_CUSTOMER_LOSE = "流失客户数";

    /**
     * 固定值(群新增人数)
     */
    public static final String STR_GROUP_ADD = "群新增人数";

    /**
     * 固定值(群流失人数)
     */
    public static final String STR_GROUP_LOSE = "群流失人数";

    /**
     * 固定值(total)
     */
    public static final String KEY_GROUP_TOTAL = "total";

    /**
     * 固定值(add)
     */
    public static final String KEY_GROUP_ADD = "add";

    /**
     * 固定值(lose)
     */
    public static final String KEY_GROUP_LOSE = "lose";

    /**
     * 群成员状态 0:退群
     */
    public final static String GROUP_MEMBER_STATUS_WITHDRAW = "0";

    /**
     * 群成员状态 1:入群
     */
    public final static String GROUP_MEMBER_STATUS_ADD = "1";

    /**
     * 群状态 0:解散
     */
    public final static String GROUP_STATUS_DISSOLUTION = "0";

    /**
     * 群成员状态 1:正常
     */
    public final static String GROUP_STATUS_NORMAL = "1";

    /**
     * 成员
     */
    public final static String CONTACTS_TYPE_MEMBER = "0";

    /**
     * 客户
     */
    public final static String CONTACTS_TYPE_CUSTOMER = "1";

    /**
     * 机器人
     */
    public final static String CONTACTS_TYPE_ROBOT = "2";

    /**
     * true
     */
    public final static String CONTACTS_TRUE_STR = "true";

    /**
     * false
     */
    public final static String CONTACTS_FALSE_STR = "false";

    /**
     * RSA 私钥头部
     */
    public final static String CONTACTS_PRIVATE_KEY_HEAD = "-----BEGIN RSA PRIVATE KEY-----";

    /**
     * RSA 私钥尾部
     */
    public final static String CONTACTS_PRIVATE_KEY_TAIL = "-----END RSA PRIVATE KEY-----";

    /**
     * RSA 公钥头部
     */
    public final static String CONTACTS_PUBLIC_KEY_HEAD = "-----BEGIN PUBLIC KEY-----";

    /**
     * RSA 公钥尾部
     */
    public final static String CONTACTS_PUBLIC_KEY_TAIL = "-----END PUBLIC KEY-----";

    /**
     * 换号符 \n
     */
    public final static String CONTACTS_LINEFEED = "\n";

    /**
     * 单个空格
     */
    public final static String CONTACTS_SPACE_STR = " ";

    /**
     * 开通企业微信客户联系功能
     */
    public static final String EXTERNAL_CONTACT_FLAG_ON = "1";

    /**
     * 关闭企业微信客户联系功能
     */
    public static final String EXTERNAL_CONTACT_FLAG_OFF = "0";

    /**
     * 获取客户群详情开启需要返回群成员名字
     */
    public static final String GROUP_MEMBER_NEED_NAME_ON = "1";

    /**
     * 开启会话存档FLG
     */
    public static final String CONVERSATION_STATE_ON = "1";

    /**
     * 关闭会话存档FLG
     */
    public static final String CONVERSATION_STATE_OFF = "0";
    /**
     * 企业内部员工
     */
    public final static String STAFF_TYPE = "0";

    /**
     * 客户
     */
    public final static String CUSTOMER_TYPE = "1";

    /**
     * 群聊
     */
    public final static String GROUP_TYPE = "3";

    /**
     * 可以调用会话存档整合信息的md5字符串
     */
    public final static String[] MD5_ARRAY = {"zctg_qw"};

    /**
     * 群聊员工
     */
    public final static String GROUP_USER_TYPE = "1";

    /**
     * 群聊客户
     */
    public final static String GROUP_CUSTOMER_TYPE = "2";

    /**
     * 会话存档(单聊Tab)
     */
    public final static String SINGLE_CHAT_TYPE = "1";

    /**
     * 会话存档(群聊Tab)
     */
    public final static String GROUP_CHAT_TYPE = "2";

    /**
     * 郭浩的手机号
     */
    public final static String GH_PHONE_NUMBER = "17371243085";

    public final static String BOUND_CUSTOMER_MOBILE_STATUS = "1";

    public final static String BOUND_CAPITAL_ACCOUNT_STATUS = "1";

    /**
     * 请求生产者
     **/
    public final static String DO_KAFKA_PRODUCER = "000000";

    /**
     * 不请求生产者
     **/
    public final static String NOT_DO_KAFKA_PRODUCER = "999999";

    /**
     * 会话存档落库异常
     */
    public final static String TO_DB_ERROR = "会话存档存入数据库异常";

    /**
     * 会话存档存入ES异常
     */
    public final static String TO_ES_ERROR = "会话存档存入ES异常";

    /**
     * 员工总数增长曲线
     */
    public final static String TOTAL_EMPLOYEE_GROWTH_CURVE = "1";

    /**
     * 员工绑定数增长曲线
     */
    public final static String GROWTH_CURVE_OF_EMPLOYEE_BINDING_NUMBER = "2";

    /**
     * 员工总数增长曲线
     */
    public final static String TOTAL_EMPLOYEE_GROWTH_CURVE_NAME = "员工总数增长曲线";

    /**
     * 员工绑定数增长曲线
     */
    public final static String GROWTH_CURVE_OF_EMPLOYEE_BINDING_NUMBER_NAME = "员工绑定数增长曲线";


    /**
     * 客户总数增长曲线
     */
    public final static String TOTAL_CUSTOMER_GROWTH_CURVE_NAME = "客户总数增长曲线";

    /**
     * 客户弱认证增长曲线
     */
    public final static String GROWTH_CUSTOMER_WEAK_AUTHENTICATION = "客户弱认证增长曲线";
    /**
     * 客户强认证增长曲线
     */
    public final static String GROWTH_CUSTOMER_STRONG_AUTHENTICATION = "客户强认证增长曲线";



    /** 会话存档和contactMapping落库异常 */
    public final static String CONTACT_MAPPING_TO_DB_ERROR = "会话存档以及contactMapping落库异常";
}
